Page({
  data: {
     currentIndex: 0,
     currentIndex1: 0,
     currentIndex2: 0,
     imgList: [{
       id:1,
       img: "https://te-1257274156.cos.ap-nanjing.myqcloud.com/ima/2179389819.jpeg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDd4GCspX0EDwPdbKo2zDCwQfeNq66rMbG%26q-sign-time%3D1724656960%3B1724660560%26q-key-time%3D1724656960%3B1724660560%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3Dbb50bc9dd0ee17244bf90a39da2f0edc4151fae3"
     }
     ],
     imgDesignList: [{
      id:1,
      img: "https://te-1257274156.cos.ap-nanjing.myqcloud.com/ima/2179389818.jpeg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDd4GCspX0EDwPdbKo2zDCwQfeNq66rMbG%26q-sign-time%3D1724657597%3B1724661197%26q-key-time%3D1724657597%3B1724661197%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D22b153bfa32cae986f9c27c9b3b80201b00498e1"
    },
    {
      id:1,
      img: "https://te-1257274156.cos.ap-nanjing.myqcloud.com/ima/logo2.jpg?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDd4GCspX0EDwPdbKo2zDCwQfeNq66rMbG%26q-sign-time%3D1724657597%3B1724661197%26q-key-time%3D1724657597%3B1724661197%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D087b52b9ec463ab021b8b6118e14ae683c00efb8"
    }
  ],
     imgMateList: [],
   },
 
   changeSwiper: function (e) {
     this.setData({
       currentIndex: e.detail.current
     })
   },
   changeSwiper1: function (e) {
     this.setData({
       currentIndex1: e.detail.current
     })
   },
   chooseItem:function(e){
     let type =e.currentTarget.dataset.type
      console.log(e.currentTarget.dataset.type)
      if(type == 1){
        wx.navigateTo({
          url: '/pages/ameng/ameng/index',
        })
      }
      if(type == 2){
        wx.navigateTo({
          url: '/pages/ameng/love/index',
        })
      }
      if(type == 3){
        wx.navigateTo({
          url: '/pages/ameng/mate/index',
        })
      }
   },
 })
 